package io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class SingleRowFile {
    public static void main(String[] args) throws IOException {
        FileInputStream fileInputStream = new FileInputStream("test3.txt");
        int a = 0;
        a = fileInputStream.read();
        System.out.print((char)a);

        a = fileInputStream.read();
        System.out.print((char)a);

        a = fileInputStream.read();
        System.out.print((char)a);

        a = fileInputStream.read();
        System.out.print((char)a);

        a = fileInputStream.read();
        System.out.print((char)a);
    }
}
